package com.czwj.entities;

import java.util.ArrayList;
import java.util.List;

public class TreeNode{
	public static final String STATE_CLOSED = "closed";
	
	public static final String STATE_OPEN = "open";
	
	public static final String ICON_CLS_DEP = "department_icon";
	
	public static final String ICON_CLS_POS = "position_icon";
	
	public static final String ICON_CLS_USER = "user_icon";
	
	private int id;
	
	private String text;
	
	private String state;
	
	private String iconCls;
	
	private boolean checked;
	
	private Object attributes;
	
	private int pid;
	
	private String type;
	
	private List<TreeNode> children = new ArrayList<>();
	
	public int getPid(){
		return pid;
	}
	
	public void setPid(int pid){
		this.pid = pid;
	}
	
	public String getType(){
		return type;
	}
	
	public void setType(String type){
		this.type = type;
	}
	
	public List<TreeNode> getChildren(){
		return children;
	}
	
	public void setChildren(List<TreeNode> children){
		this.children = children;
	}
	
	public int getId(){
		return id;
	}
	
	public void setId(int id){
		this.id = id;
	}
	
	public String getText(){
		return text;
	}
	
	public void setText(String text){
		this.text = text;
	}
	
	public String getState(){
		return state;
	}
	
	public void setState(String state){
		this.state = state;
	}
	
	public String getIconCls(){
		return iconCls;
	}
	
	public void setIconCls(String iconCls){
		this.iconCls = iconCls;
	}
	
	public boolean isChecked(){
		return checked;
	}
	
	public void setChecked(boolean checked){
		this.checked = checked;
	}
	
	public Object getAttributes(){
		return attributes;
	}
	
	public void setAttributes(Object attributes){
		this.attributes = attributes;
	}
}
